package com.java.abstrictfactory;

import com.java.model.AMDCpu;
import com.java.model.AMDMatorboard;
import com.java.model.CPU;
import com.java.model.Motherboard;

/**
 * @Author: TongRui乀
 * @Date: 2019/3/5 14:25
 * @description：
 */
public class AmdComputerFactory implements ComputerFactory {
    @Override
    public Motherboard makeMotherBoard() {

        AMDMatorboard amdMatorboard = new AMDMatorboard();

        amdMatorboard.setName("AMD");

        return amdMatorboard;
    }

    @Override
    public CPU makeCpu() {

        AMDCpu amdCpu = new AMDCpu();

        amdCpu.setName("AMD");

        return amdCpu;
    }
}
